def print_line(str, times, i):

    count = 0

    while count < i:

        print("%s" % str * times)

        count += 1


print_line("hi ",23,5)